<?php defined('IN_ADMIN') or exit('No permission resources.');?>
<?php include $this->admin_tpl('header', 'admin');?>
<script type="text/javascript" src="<?php echo JS_PATH?>jquery.sgallery.js"></script>
<div class="pad-lr-10">

<form name="myform" action="?m=course&c=manage&a=del" method="post" onsubmit="return confirm('<?php echo L('confirm')?>')">
<div class="table-list">
<table width="100%" cellspacing="0">
	<thead>
		<tr>
			<th  align="left" width="20"><input type="checkbox" value="" id="check_box" onclick="selectall('id[]');"></th>
			<th align="left">ID</th>
			<th align="left"><?php echo L('course_name')?></th>
			<th align="left"><?php echo L('course_description')?></th>
			<th align="left"><?php echo L('course_time')?></th>
			<th align="left"><?php echo L('course_author')?></th>
			<th align="left"><?php echo L('course_updatetime')?></th>
			<th align="left"><?php echo L('course_operation')?></th>
		</tr>
	</thead>
<tbody>
<?php
	foreach($courseinfo as $k=>$v) {
?>
    <tr>
		<td align="left"><input type="checkbox" value="<?php echo $v['id']?>" name="id[]"></td>
		<td align="left"><?php echo $v['id']?></td>
		<td align="left"><?php echo $v['name']?></td>
		<td align="left"><?php echo $v['description']?></td>
		<td align="left"><?php echo date('Y-m-d',$v['course_time'])?></td>
		<td align="left"><?php echo $v['username']?></td>
		<td align="left"><?php echo date('Y-m-d H:i:s',$v['updatetime'])?></td>
		<td align="left">
		<a href="?m=course&c=manage&a=edit&id=<?php echo $v['id']?>">[<?php echo L('course_edit');?>]</a>
		<a href="?m=course&c=manage&a=del&id=<?php echo $v['id']?>" onClick="return confirm('<?php echo L('confirm')?>')">[<?php echo L('course_del')?>]</a>
		
		 </td>
    </tr>
<?php
	}

?>
</tbody>
</table>

<div class="btn">
<label for="check_box"><a href="#" onClick="javascript:$('input[type=checkbox]').attr('checked', true)"><?php echo L('select_all')?></a>/<a href="#" onClick="javascript:$('input[type=checkbox]').attr('checked', false)"><?php echo L('cancel')?></a></label> <input type="submit" class="button" name="dosubmit" value="<?php echo L('delete')?>"/>
</div>

<div id="pages"><?php echo $pages?></div>
</div>
</form>
</div>
</body>
</html>